﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using EShop.Core;
using EShop.Core.Model.Store;

namespace EShop.Services.Store
{
    public interface IManagePay
    {
        /// <summary>
        /// 添加支付方式
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int AddPay(PaymentMethod model);
        /// <summary>
        /// 修改支付方式
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool UpdatePay(PaymentMethod model);
        /// <summary>
        /// 删除支付方式
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelPay(string id);
        /// <summary>
        /// 列表分页查询支付信息
        /// </summary>
        /// <param name="start"></param>
        /// <param name="limit"></param>
        /// <param name="fiter"></param>
        /// <returns></returns>
        IPagedList<PaymentMethod> GetAllPay(int pageIndex, int pageSize, string userName);
        /// <summary>
        /// 获取单条支付方式
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        PaymentMethod GetPayById(int id);
        string GetPayNameById(int id);
    }
}
